package com.txts.road.app.device.model.vo;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;

/**
 * 设备视图对象
 *
 * @author baoyr
 * @since 2025-07-17 10:48
 */
@Getter
@Setter
@Schema( description = "设备视图对象")
public class DeviceVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "设备ID")
    private Long id;
    @Schema(description = "用户ID")
    private Long userId;
    @Schema(description = "设备名称")
    private String deviceName;
    @Schema(description = "设备类型")
    private String deviceType;
    @Schema(description = "设备序列号")
    private String deviceSn;
    @Schema(description = "固件版本")
    private String firmwareVersion;
    @Schema(description = "设备状态：1-在线，2-离线，3-故障")
    private Integer status;
    @Schema(description = "最后在线时间")
    private LocalDateTime lastOnlineTime;

}
